package com.atguigu.controller;

import com.atguigu.proper.DataSourceConfigurationProperties;
import com.atguigu.proper.DataSourceProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping(path = "/hello")
public class HelloController {
    @Autowired
    private DataSourceProperties dataSourceProperties ;
    @GetMapping("h02")
    public Object h02() {
        return dataSourceProperties ;
    }

    @Autowired
    private DataSourceConfigurationProperties dataSourceConfigurationProperties;
    @GetMapping("h03")
    public Object h03() {
        return  dataSourceConfigurationProperties;
    }

}
